package com.liangtian.mdm.dm.attribute.model;

import com.liangtian.mdm.base.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * 动态模型属性实体类
 *
 * @author hadoop
 */
@Table(name = "AM_ATTRIBUTE")
public class Attribute extends BaseModel {

    /**
     *
     */
    private static final long serialVersionUID = 2013015731425533097L;
    @SequenceGenerator(name = "Any", sequenceName = "AM_ATTRIBUTE_SEQ")
    @Id
    @Column(name = "ID")
    private String id;  //主键

    @Column(name = "ATTR_NAME")
    private String attrName;  //属性名称

    @Column(name = "ATTR_DESC")
    private String attrDesc;  //属性描述

    @Column(name = "ATTR_COLUMN")
    private String attrColumn;  //数据库列名

    @Column(name = "ATTR_LENGTH")
    private String attrLength;  //数据库存储长度

    @Column(name = "ATTR_ZS")
    private int attrZs;  //字段类型整数位

    @Column(name = "ATTR_XS")
    private int attrXs;  //字段类型小数位

    @Column(name = "MODEL_ID")
    private String modelId;  //对应模型ID

    @Column(name = "DATA_TYPE")
    private String dataType;  //数据类型

    @Column(name = "IS_DEL")
    private String isDel;  //是否删除   0未删除   1删除


    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAttrName() {
        return attrName;
    }

    public void setAttrName(String attrName) {
        this.attrName = attrName;
    }

    public String getAttrDesc() {
        return attrDesc;
    }

    public void setAttrDesc(String attrDesc) {
        this.attrDesc = attrDesc;
    }

    public String getAttrColumn() {
        return attrColumn;
    }

    public void setAttrColumn(String attrColumn) {
        this.attrColumn = attrColumn;
    }

    public String getAttrLength() {
        return attrLength;
    }

    public void setAttrLength(String attrLength) {
        this.attrLength = attrLength;
    }

    public int getAttrZs() {
        return attrZs;
    }

    public void setAttrZs(int attrZs) {
        this.attrZs = attrZs;
    }

    public int getAttrXs() {
        return attrXs;
    }

    public void setAttrXs(int attrXs) {
        this.attrXs = attrXs;
    }

    public String getModelId() {
        return modelId;
    }

    public void setModelId(String modelId) {
        this.modelId = modelId;
    }

    public String getDataType() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType = dataType;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

}
